package com.zxy.dao;

import cn.echo.annotation.PageX;
import com.zxy.model.Roles;
import com.zxy.model.User;
import com.zxy.model.UserRoles;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface UserRolesDao {
    int insert(UserRoles userRoles);

    int delete(UserRoles userRoles);

    int deleteByRoleId(Integer roleId);
    @PageX
    List<Roles> selectRoleByUserId(Integer id);
    @PageX
    List<User> selectUserByRoleId(Integer id);
}
